<template>
  <v-container class="grey lighten-5" >
    <div height="900px">1111111111111111111111</div>
    <v-btn
      depressed
      color="primary" 
      @click="test"
    >点击</v-btn>
    <p><span v-text="info"></span></p>
  </v-container>
</template>

<script>
import { defineComponent } from '@vue/composition-api'


export default defineComponent({
  setup() {
    
  },
  data(){
    return {
      info: ''
    }
  },
  methods:{
    test: function(){
      console.log('2222222')
      let post_data = {
          name: 'ljk'
      }
      console.log(post_data)
      this.$api.doc.test(post_data).then(res=>{
        console.log('22222222')
        console.log(res)
        this.info = res.data.message
      })
    }
  }
  
})
</script>


<style scoped>

</style>
